/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package flightlifter;

import java.util.Vector;

/**
 *
 * @author Matt
 */
public class ProximityObjective extends MissionObjective {

    Point a;

    public ProximityObjective(Point a){
        this.a = a;
    }

    @Override
    public void physics() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void render(int mode) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String pickle(Vector<Node> nodes) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public PVector getCentroid() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public PVector getScreenSpaceCentroid() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

        public boolean dependsOn(Point p) {
        if (p == a ) {
            return true;
        } else {
            return false;
        }
    }

}
